import request from '@/utils/request'

// 查询校区分销配置列表
export function listCampusdistribution(query) {
  return request({
    url: '/campus/campusdistribution/list',
    method: 'get',
    params: query
  })
}

// 查询校区分销配置详细
export function getCampusdistribution(distributionId) {
  return request({
    url: '/campus/campusdistribution/' + distributionId,
    method: 'get'
  })
}

// 新增校区分销配置
export function addCampusdistribution(data) {
  return request({
    url: '/campus/campusdistribution',
    method: 'post',
    data: data
  })
}

// 修改校区分销配置
export function updateCampusdistribution(data) {
  return request({
    url: '/campus/campusdistribution',
    method: 'put',
    data: data
  })
}

// 删除校区分销配置
export function delCampusdistribution(distributionId) {
  return request({
    url: '/campus/campusdistribution/' + distributionId,
    method: 'delete'
  })
}
